import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

from ui import data_conf_window
import threading



def init_App():
    app = QApplication(sys.argv)
    MainWindow = QMainWindow()
    ui = data_conf_window.DataConf_Window()
    ui.setupUi(MainWindow)
    ui.setupAction()
    ui.setupFlags()
    return app, ui, MainWindow

def start(app, MainWindow):
    MainWindow.show()
    app.exec_()


if __name__ == '__main__':
    app = QApplication(sys.argv)
    MainWindow = QMainWindow()
    ui = data_conf_window.DataConf_Window()
    ui.setupUi(MainWindow)
    MainWindow.show()
    ui.setupAction()
    app.exec_()
